

import { createApp } from 'vue'
import router from './router/index'
import App from './App.vue'
import { createPinia } from 'pinia'
import '@/styles/common.scss'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

let app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)  // 注册持久化插件
app.use(router)
app.use(pinia)
app.mount('#app')
